dracut: Add ostree-remount
authorColin Walters <walters@verbum.org>
Tue, 4 Jun 2013 17:18:36 +0000 (13:18 -0400)
committerColin Walters <walters@verbum.org>
Tue, 4 Jun 2013 19:59:52 +0000 (15:59 -0400)
commit7e882cc2cff988c128b0b3dba9092c220ab52c75
treea6e821184aef7f68aa05fd1ab71cb798857fff38
parent26baee6c3b16d35db28de1b8d3e62ae57856496f
dracut: Add ostree-remount

Linux creates a copy of the soure mount flags when creating a bind
mount; if the source is read-only, then the bind mount is.

The problem is that systemd will remount the rootfs read/write, but
each mount (/home, /var etc.) will still be read-only.  We need to
remount every bind mount except for /usr to read-write too.

This only "worked" with the old ostree-switch-root because it
effectively force mounted the rootfs read-write always, ignoring the
"ro" flag.
Makefile-dracut.am
Makefile-libostree.am
Makefile-switchroot.am
Makefile.am
src/dracut/ostree-remount.service [new file with mode: 0644]
src/switchroot/ostree-mount-util.c [new file with mode: 0644]
src/switchroot/ostree-mount-util.h [new file with mode: 0644]
src/switchroot/ostree-prepare-root.c
src/switchroot/ostree-remount.c [new file with mode: 0644]
src/switchroot/ostree-switch-root.c